package com.xue.dao.sys;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.xue.common.core.IBaseDAO;
import com.xue.pojo.sys.SysMenu;

//2018-12-28 15:14:49
public interface SysMenuDAO extends IBaseDAO<SysMenu, String> {

	Set<String> queryMenuIdsByUserId(@Param("userId") String userId, @Param("sysVersion") int sysVersion);

	List<String> loadUserShouCangMenuIds(@Param("params") Map<String, Object> params);

	int checkUserMenuId(@Param("params") Map<String, Object> params);

	void deleteUserShouCang(@Param("params") Map<String, Object> params);

	void saveUserShouCang(@Param("params") Map<String, Object> params);

	List<String> loadUserShouCangMenuCodes(@Param("params") Map<String, Object> params);

	List<SysMenu> queryParent(@Param("params") Map<String, Object> params);

	List<SysMenu> querySub(@Param("params") Map<String, Object> params);

	Set<String> queryMenuIdsByCommonRole(@Param("sysVersion") int intValue);
}
